IRR

constructor(cashFlows: List<ROICashFlowEntry>?, allowAllZerosCashFlows: Boolean = false, title: String? = null, currency: CurrencyType? = null, account: Account? = null)

Creates a new IRR calculation instance for IRR calculations and results

Parameters

cashFlows

Optionally specify the list of cash flows for the IRR calculation, or null (which will be invalid).

allowAllZerosCashFlows

Allows otherwise valid cashflows with values of all (or near-) zeros to report as valid.

title

Optional title for this IRR calculation.

currency

Optionally specify the currency used to create the cash flows (e.g. dollars, euro, etc., not shares), or null.

account

Optionally specify the account used to create the cash flows (e.g. security account), or null.